package com.ficus.road.maintain.core.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Unit {
    @Id
    //标段Id
    private String id;
    // 标段名称
    private String unitName;
    // 标段路线
    private List<String> routes;
    // 标段轮廓
    private List<List<List<Double>>> contour;

    // 标段路线id集合
    private List<String> roads;

    //标段道路类型， highway: 公路， road:道路
    private String roadType;

}
